package com.sun.dailyprj.designpatterns.chain;

public class NotifyToast extends InterceptChain{

    public NotifyToast(String tag) {
        super(tag);
        System.out.println("NotifyToast construct : " + tag);
    }

    @Override
    void next(String tag) {
        System.out.println("NotifyToast next to tag : " + tag);
    }

    @Override
    void cancel(String tag) {
        System.out.println("NotifyToast cancel to tag : " + tag);
    }

    @Override
    void other(String tag) {
        System.out.println("NotifyToast other to tag : " + tag);
    }

    public void check(){
        handlerNext("disclaimer");
    }

    public void ignore(){
        handlerCancel("schedule");
    }



}
